package com.phoenix.service.impl;

import com.phoenix.entity.GroupMember;
import com.phoenix.mapper.GroupMemberMapper;
import com.phoenix.service.GroupMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class GroupMemberServiceImpl implements GroupMemberService {
    @Autowired
    GroupMemberMapper groupMemberMapper;

    @Override
    public List<GroupMember> selectNSearch(Map<String, Object> search) {
        return groupMemberMapper.selectNSearch(search);
    }

    @Override
    public Boolean addGroupMember(GroupMember groupMember) {
        return groupMemberMapper.addGroupMember(groupMember);
    }

    @Override
    public Boolean deleteGroupMember(Integer groupID) {
        return groupMemberMapper.deleteGroupMember(groupID);
    }

    @Override
    public Boolean deleteGroupMemberByList(List<String> IDList) {
        return groupMemberMapper.deleteGroupMemberByList(IDList);
    }

    @Override
    public Boolean updateGroupMember(GroupMember groupMember) {
        return groupMemberMapper.updateGroupMember(groupMember);
    }

    @Override
    public GroupMember selectGroupByID(String groupID) {
        return groupMemberMapper.selectGroupByID(groupID);
    }

    @Override
    public List<GroupMember> adminSelectNSearch(Map<String, Object> search) {
        return groupMemberMapper.adminSelectNSearch(search);
    }
}
